package domain

type AlibabaServicecenterSpserviceorderQuerySpServiceorderDTO struct {
	/*
	   取消的份数     */
	RefundServiceCount *int64 `json:"refund_service_count,omitempty" `

	/*
	   实物子订单信息     */
	MasterTradeOrder *AlibabaServicecenterSpserviceorderQueryMasterTradeOrderDTO `json:"master_trade_order,omitempty" `

	/*
	   服务定义     */
	ServiceDefinition *AlibabaServicecenterSpserviceorderQueryServiceDefinitionDTO `json:"service_definition,omitempty" `

	/*
	   买家信息     */
	Buyer *AlibabaServicecenterSpserviceorderQueryBuyerDTO `json:"buyer,omitempty" `

	/*
	   已使用份数     */
	UsedServiceCount *int64 `json:"used_service_count,omitempty" `

	/*
	   费用信息     */
	FeeList *[]AlibabaServicecenterSpserviceorderQueryFeeInfo `json:"fee_list,omitempty" `

	/*
	   剩余的份数     */
	LeftServiceCount *int64 `json:"left_service_count,omitempty" `

	/*
	   服务子订单信息     */
	ServiceTradeOrder *AlibabaServicecenterSpserviceorderQueryServiceTradeOrderDTO `json:"service_trade_order,omitempty" `

	/*
	   服务的总份数     */
	ServiceCount *int64 `json:"service_count,omitempty" `

	/*
	   服务过期时间     */
	GmtExpire *string `json:"gmt_expire,omitempty" `

	/*
	   服务单修改时间     */
	GmtModified *string `json:"gmt_modified,omitempty" `

	/*
	   服务单创建时间     */
	GmtCreate *string `json:"gmt_create,omitempty" `

	/*
	   服务单有效期开始时间     */
	GmtEffect *string `json:"gmt_effect,omitempty" `

	/*
	   服务单id     */
	SpServiceorderId *int64 `json:"sp_serviceorder_id,omitempty" `

	/*
	   正在使用中的次数     */
	UsingServiceCount *int64 `json:"using_service_count,omitempty" `

	/*
	   状态编码：create(创建)、effect(生效)、closed(关闭)、finish(完成)     */
	StatusCode *string `json:"status_code,omitempty" `
}

func (s *AlibabaServicecenterSpserviceorderQuerySpServiceorderDTO) SetRefundServiceCount(v int64) *AlibabaServicecenterSpserviceorderQuerySpServiceorderDTO {
	s.RefundServiceCount = &v
	return s
}
func (s *AlibabaServicecenterSpserviceorderQuerySpServiceorderDTO) SetMasterTradeOrder(v AlibabaServicecenterSpserviceorderQueryMasterTradeOrderDTO) *AlibabaServicecenterSpserviceorderQuerySpServiceorderDTO {
	s.MasterTradeOrder = &v
	return s
}
func (s *AlibabaServicecenterSpserviceorderQuerySpServiceorderDTO) SetServiceDefinition(v AlibabaServicecenterSpserviceorderQueryServiceDefinitionDTO) *AlibabaServicecenterSpserviceorderQuerySpServiceorderDTO {
	s.ServiceDefinition = &v
	return s
}
func (s *AlibabaServicecenterSpserviceorderQuerySpServiceorderDTO) SetBuyer(v AlibabaServicecenterSpserviceorderQueryBuyerDTO) *AlibabaServicecenterSpserviceorderQuerySpServiceorderDTO {
	s.Buyer = &v
	return s
}
func (s *AlibabaServicecenterSpserviceorderQuerySpServiceorderDTO) SetUsedServiceCount(v int64) *AlibabaServicecenterSpserviceorderQuerySpServiceorderDTO {
	s.UsedServiceCount = &v
	return s
}
func (s *AlibabaServicecenterSpserviceorderQuerySpServiceorderDTO) SetFeeList(v []AlibabaServicecenterSpserviceorderQueryFeeInfo) *AlibabaServicecenterSpserviceorderQuerySpServiceorderDTO {
	s.FeeList = &v
	return s
}
func (s *AlibabaServicecenterSpserviceorderQuerySpServiceorderDTO) SetLeftServiceCount(v int64) *AlibabaServicecenterSpserviceorderQuerySpServiceorderDTO {
	s.LeftServiceCount = &v
	return s
}
func (s *AlibabaServicecenterSpserviceorderQuerySpServiceorderDTO) SetServiceTradeOrder(v AlibabaServicecenterSpserviceorderQueryServiceTradeOrderDTO) *AlibabaServicecenterSpserviceorderQuerySpServiceorderDTO {
	s.ServiceTradeOrder = &v
	return s
}
func (s *AlibabaServicecenterSpserviceorderQuerySpServiceorderDTO) SetServiceCount(v int64) *AlibabaServicecenterSpserviceorderQuerySpServiceorderDTO {
	s.ServiceCount = &v
	return s
}
func (s *AlibabaServicecenterSpserviceorderQuerySpServiceorderDTO) SetGmtExpire(v string) *AlibabaServicecenterSpserviceorderQuerySpServiceorderDTO {
	s.GmtExpire = &v
	return s
}
func (s *AlibabaServicecenterSpserviceorderQuerySpServiceorderDTO) SetGmtModified(v string) *AlibabaServicecenterSpserviceorderQuerySpServiceorderDTO {
	s.GmtModified = &v
	return s
}
func (s *AlibabaServicecenterSpserviceorderQuerySpServiceorderDTO) SetGmtCreate(v string) *AlibabaServicecenterSpserviceorderQuerySpServiceorderDTO {
	s.GmtCreate = &v
	return s
}
func (s *AlibabaServicecenterSpserviceorderQuerySpServiceorderDTO) SetGmtEffect(v string) *AlibabaServicecenterSpserviceorderQuerySpServiceorderDTO {
	s.GmtEffect = &v
	return s
}
func (s *AlibabaServicecenterSpserviceorderQuerySpServiceorderDTO) SetSpServiceorderId(v int64) *AlibabaServicecenterSpserviceorderQuerySpServiceorderDTO {
	s.SpServiceorderId = &v
	return s
}
func (s *AlibabaServicecenterSpserviceorderQuerySpServiceorderDTO) SetUsingServiceCount(v int64) *AlibabaServicecenterSpserviceorderQuerySpServiceorderDTO {
	s.UsingServiceCount = &v
	return s
}
func (s *AlibabaServicecenterSpserviceorderQuerySpServiceorderDTO) SetStatusCode(v string) *AlibabaServicecenterSpserviceorderQuerySpServiceorderDTO {
	s.StatusCode = &v
	return s
}
